package com.xyzm.mytest.algorithm.other;

public class BitDemo {
    public static void main(String[] args) {
        int a = 120;
        int b = 22;
        a = a^b;
        b = a^b;
        a = a^b;
        /*
        //a=a^b^b^a^b == b;
        //b = a^b^b == a;
         */
        System.out.println(a);
        System.out.println(b);
    }
}
